/**
 * 权限接口定义
 */
export interface Permission {
  id: number
  permission: string
  name: string
  label: string
  description?: string
  type: 'menu' | 'button' | 'api'
  path: string
  method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'
  sort: number
  parentId: number | null
  status: 0 | 1
  icon: string
  hidden: boolean
  component: string
  redirect: string
  alwaysShow: boolean
  meta: { [key: string]: any }
  children?: Permission[]
}

// 角色接口
export interface Role {
  id: number
  name: string
  code: string
  description?: string
  createdTime: string
}
